package com.itheima.dao.impl;

import com.itheima.dao.BookDao;

public class BookDaoimpl implements BookDao
{
    public String name;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int age;

    public boolean isok=true;
    @Override
    public void save() {
        System.out.println("book dao is running"+this.name+","+this.age);
    }
    //表示初始化方法
    public void init()
    {
        System.out.println("init");
    }
    //表示销毁方法
    public void destory()
    {
        isok=false;
        System.out.println("destory");
    }
}
